package main

import "fmt"

type Node struct {
	data int
	next *Node
}

func main() {
	head := &Node{data: 1, next: &Node{data: 2, next: &Node{data: 3, next: &Node{}}}}

	for head != nil {
		fmt.Println(head.data)
		head = head.next
	}
}
